package com.droowa.domain;


import java.io.Serializable;

public class ShopManager implements Serializable {
	
	private String shopManagerId;
	private String name;
	private String tel;
	private String email;
	private String sort;
	private String pwd;
	private String pageAccessRight;
	
	public ShopManager() {
		super();
	}
	public ShopManager(String shopManagerId, String name, String tel,
			String email, String sort, String pwd, String pageAccessRight) {
		super();
		this.shopManagerId = shopManagerId;
		this.name = name;
		this.tel = tel;
		this.email = email;
		this.sort = sort;
		this.pwd = pwd;
		this.pageAccessRight = pageAccessRight;
	}
	/**
	 * @return the shopManagerId
	 */
	public String getShopManagerId() {
		return shopManagerId;
	}
	/**
	 * @param shopManagerId the shopManagerId to set
	 */
	public void setShopManagerId(String shopManagerId) {
		this.shopManagerId = shopManagerId;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the tel
	 */
	public String getTel() {
		return tel;
	}
	/**
	 * @param tel the tel to set
	 */
	public void setTel(String tel) {
		this.tel = tel;
	}
	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * @return the sort
	 */
	public String getSort() {
		return sort;
	}
	/**
	 * @param sort the sort to set
	 */
	public void setSort(String sort) {
		this.sort = sort;
	}
	/**
	 * @return the pwd
	 */
	public String getPwd() {
		return pwd;
	}
	/**
	 * @param pwd the pwd to set
	 */
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	/**
	 * @return the pageAccessRight
	 */
	public String getPageAccessRight() {
		return pageAccessRight;
	}
	/**
	 * @param pageAccessRight the pageAccessRight to set
	 */
	public void setPageAccessRight(String pageAccessRight) {
		this.pageAccessRight = pageAccessRight;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ShopManager [shopManagerId=" + shopManagerId + ", name=" + name
				+ ", tel=" + tel + ", email=" + email + ", sort=" + sort
				+ ", pwd=" + pwd + ", pageAccessRight=" + pageAccessRight + "]";
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result
				+ ((pageAccessRight == null) ? 0 : pageAccessRight.hashCode());
		result = prime * result + ((pwd == null) ? 0 : pwd.hashCode());
		result = prime * result
				+ ((shopManagerId == null) ? 0 : shopManagerId.hashCode());
		result = prime * result + ((sort == null) ? 0 : sort.hashCode());
		result = prime * result + ((tel == null) ? 0 : tel.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ShopManager other = (ShopManager) obj;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (pageAccessRight == null) {
			if (other.pageAccessRight != null)
				return false;
		} else if (!pageAccessRight.equals(other.pageAccessRight))
			return false;
		if (pwd == null) {
			if (other.pwd != null)
				return false;
		} else if (!pwd.equals(other.pwd))
			return false;
		if (shopManagerId == null) {
			if (other.shopManagerId != null)
				return false;
		} else if (!shopManagerId.equals(other.shopManagerId))
			return false;
		if (sort == null) {
			if (other.sort != null)
				return false;
		} else if (!sort.equals(other.sort))
			return false;
		if (tel == null) {
			if (other.tel != null)
				return false;
		} else if (!tel.equals(other.tel))
			return false;
		return true;
	}
	
	

}
